<?php

namespace App\Model\Baiyou;

use App\Model\BaseModel;
use EasySwoole\EasySwoole\Config;
use EasySwoole\ORM\Utility\Schema\Table;


/**
 * This is the model class for table "{{%patient_infusion_queue_drug}}".
 *
 * @property int $id
 * @property int $queue_id 队列ID
 * @property int $patient_user_id 患者ID
 * @property int $drug_config_id 药品配置ID【base_drug_config】
 * @property int $drug_surplus_id 患者药品ID【patient_drug_surplus】
 * @property int $use_num 使用次数
 * @property int $created_at 创建时间
 * @property int $updated_at 更新时间
 */
class PatientInfusionQueueDrug extends BaseModel
{
    // 指定连接名称
//    protected $connectionName = 'dengta';

    public function __construct(array $data = [])
    {
        $tablePrefix = Config::getInstance()->getConf("MYSQL.tablePrefix");
        $name = $tablePrefix . "patient_infusion_queue_drug";
        $this->tableName($name);

        parent::__construct($data);
    }
}
